package com.tianji.promotion.mapper;

import com.tianji.promotion.domain.po.CouponScope;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 优惠券作用范围信息 Mapper 接口
 * </p>
 *
 * @author LYQ
 * @since 2024-07-03
 */
public interface CouponScopeMapper extends BaseMapper<CouponScope> {

    @Delete("delete from coupon_scope where coupon_id = #{couponId}")
    void removeByCouponId(@Param("couponId") Long couponId);
}
